/**
 * Created by susu on 2019/3/28.
 */
var judegURL={
    getUrl(variable) { //获取多个参数 调用需要传名称
        var query = window.location.hash.substring(3);
        var vars = query.split("&");
        for (var i=0;i<vars.length;i++) {
            var pair = vars[i].split("=");
            if(pair[0] == variable){return pair[1];}
        }
        return(false);

    },
    GetUrlPara()
    {
        var url = document.location.toString();//获取单个参数
        var arrUrl = url.split("=");
        var para = arrUrl[1];
        return  para
    }

}
export  default  judegURL;
